﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
	xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Basic.ProjectInfoNavgationItemView"
	Width="90" Height="29">

	<UserControl.Resources>
		<ControlTemplate x:Key="ValidationToolTipTemplate">
			<Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
				<Grid.RenderTransform>
					<TranslateTransform x:Name="xform" X="-25"/>
				</Grid.RenderTransform>
				<VisualStateManager.VisualStateGroups>
					<VisualStateGroup x:Name="OpenStates">
						<VisualStateGroup.Transitions>
							<VisualTransition GeneratedDuration="0"/>
							<VisualTransition GeneratedDuration="0:0:0.2" To="Open">
								<Storyboard>
									<DoubleAnimation Duration="0:0:0.2" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform">
										<DoubleAnimation.EasingFunction>
											<BackEase Amplitude=".3" EasingMode="EaseOut"/>
										</DoubleAnimation.EasingFunction>
									</DoubleAnimation>
									<DoubleAnimation Duration="0:0:0.2" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
								</Storyboard>
							</VisualTransition>
						</VisualStateGroup.Transitions>
						<VisualState x:Name="Closed">
							<Storyboard>
								<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
							</Storyboard>
						</VisualState>
						<VisualState x:Name="Open">
							<Storyboard>
								<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="xform"/>
								<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Root"/>
							</Storyboard>
						</VisualState>
					</VisualStateGroup>
				</VisualStateManager.VisualStateGroups>
				<Border Background="#052A2E31" CornerRadius="5" Margin="4,4,-4,-4"/>
				<Border Background="#152A2E31" CornerRadius="4" Margin="3,3,-3,-3"/>
				<Border Background="#252A2E31" CornerRadius="3" Margin="2,2,-2,-2"/>
				<Border Background="#352A2E31" CornerRadius="2" Margin="1,1,-1,-1"/>
				<Border Background="#FFDC000C" CornerRadius="2"/>
				<Border CornerRadius="2">
					<TextBlock Foreground="White" MaxWidth="250" Margin="8,4,8,4" TextWrapping="Wrap" Text="{Binding (Validation.Errors)[0].ErrorContent}" UseLayoutRounding="false"/>
				</Border>
			</Grid>
		</ControlTemplate>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<RadioButton x:Name="rb_basic_info" Style="{StaticResource rbs_project_tool}" Checked="RadioButton_Checked">
			<RadioButton.Background>
				<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-1.png"/>
			</RadioButton.Background>
			<i:Interaction.Behaviors>
				<EIA_SLClient_Utility_Behaviors:Background7StateBehavior>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedPressed>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-2.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedPressed>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedNormal>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-1.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedNormal>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedMouseOver>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-2.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundUncheckedMouseOver>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundDisabled>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-1.png" Opacity="0.4"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundDisabled>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedPressed>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-2.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedPressed>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedNormal>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-2.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedNormal>
					<EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedMouseOver>
						<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/基本信息-2.png"/>
					</EIA_SLClient_Utility_Behaviors:Background7StateBehavior.BackgroundCheckedMouseOver>
				</EIA_SLClient_Utility_Behaviors:Background7StateBehavior>
			</i:Interaction.Behaviors>
		</RadioButton>
	</Grid>
</UserControl>